ACTOR Shot_Gun : BrutalWeapon
{
	Game Doom
	SpawnID 27
	Weapon.SelectionOrder 1300
	Weapon.AmmoUse1 0
	Weapon.AmmoUse2 0
	Weapon.AmmoGive1 0
	Weapon.AmmoGive2 0
	Weapon.AmmoType1 "AmmoShell"
	Weapon.AmmoType2 "ShotgunAmmo"
	Inventory.PickupMessage "$GOTSHOTGUN"
    Inventory.PickupSound "weapons/sgpump"
	Inventory.ForbiddenTo Corvus
	Obituary "$OB_MPSHOTGUN"
    AttackSound "None"
    +WEAPON.NOAUTOAIM
	+WEAPON.NOAUTOFIRE
	+WEAPON.NOALERT
	+FORCEXYBILLBOARD
	Scale 0.9
	States
	{
	Spawn:
		SHTC A -1
		Stop
		
	Select:
		"####" A 0 A_Giveinventory("GoSpecial",1)
        "####" A 0 A_JumpIfInventory("GoFatality", 1, "GoingToReady")
		SPSS A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMSS A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHSS A 0
		"####" AAAAAAAAAAAA 0 A_Raise
		"####" ABCD 1 A_Raise
		Goto Super::Select
		
	Deselect:
		"####" A 0 A_Takeinventory("UseShotgunStrap",1)
		SPSS D 0 A_JumpIfInventory("IsPaladin",1,3)
		SMSS A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHSS D 0 
		"####" DCBA 1 A_Lower
		Goto Super::Deselect
		
	Ready:
	ReadyLoop:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0 
        "####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        "####" A 0 A_JumpIfInventory("Taunting",1,"Taunt")
        "####" A 0 A_JumpIfInventory("Reloading",1,"Reload")
		"####" A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Unloading",1,"Unload")
		"####" A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		"####" A 0 A_JumpIfInventory("Quickspell",1,"Quickspell")
		"####" A 0 A_JumpIfInventory("StartDualWield",1,"DualWield")
		"####" A 0 A_SetCrosshair(36)
	OkToFire:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0 
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
        Goto ReadyLoop	
	Ready2:
        "####" A 0 A_JumpIfInventory("Kicking",1,"DoKick")
        "####" A 0 A_JumpIfInventory("Taunting",1,"Taunt")
        "####" A 0 A_JumpIfInventory("Reloading",1,"Reload")
		"####" A 0 A_JumpIfInventory("Salute1", 1, "Salute")
		"####" A 0 A_JumpIfInventory("Salute2", 1, "Salute")
		"####" A 0 A_JumpIfInventory("TossGrenade",1,"TossGrenade")
		"####" A 0 A_JumpIfInventory("Unloading",1,"Unload")
		"####" A 0 A_JumpIfInventory("StartDualWield",1,"DualWield")
		"####" A 0 A_SetCrosshair(41)
		SHT8 A 0
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		Loop

    Fire:
		SPTA A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTA A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTA A 0
        "####" A 0 A_Takeinventory("Reloading",1)
		"####" A 0 A_JumpIfInventory("Zoomed",1,"Fire2")
        "####" A 0 A_JumpIfInventory("ShotgunAmmo",1,1)
        Goto Reload
		"####" A 0 A_ZoomFactor(0.96)
		"####" A 0 A_JumpIfInventory("ShotgunWasEmpty", 1, "Pump2")
		
		"####" A 0 A_JumpIfInventory("FrostEnchantedShotgun",1,2)
        "####" A 0 A_AlertMonsters
        "####" A 0 A_PlaySound("weapons/sg", 1)
		"####" AA 0 A_FireCustomMissile("GunFireSmoke", 0, 0, 0, 0, 0, 0)
		"####" A 0 A_FireCustomMissile("DistantFireSoundShotgun", random(-1,1), 0, 0, -12, 0, random(-1,1))
        "####" A 0
		"####" AA 0 A_FireCustomMissile("YellowFlareSpawn",0,0,0,0)
		"####" A 0 A_SpawnItemEx("PlayerMuzzle1",30,5,30)
		"####" AAAAA 0 A_FireCustomMissile("DecorativeTracer", random(-3,3), 0, 0, -12, 0, random(-3,3))
		"####" A 0 A_Takeinventory("ShotgunAmmo",1)
		"####" A 0 A_FireBullets (3, 3, 10, 12, "ShotgunPuff", FBF_NORANDOM)

		"####" A 0 A_JumpIfInventory("FireEnchantedShotgun",1,4)
		"####" A 0 A_JumpIfInventory("LightningEnchantedShotgun",1,5)
		"####" A 0 A_JumpIfInventory("FrostEnchantedShotgun",1,6)
		
		"####" A 0 A_Jump(256,6)
		"####" A 0 A_FireBullets (6, 4, 10, 6, "FirePuff", FBF_NORANDOM)//fire damage - +50% of normal
		"####" A 0 A_Jump(256,4)
		"####" A 0 A_FireBullets (6, 4, 10, 12, "TeslaPuff", FBF_NORANDOM)//lightning damage - +100% of normal
		"####" A 0 A_Jump(256,2)
		"####" A 0 A_FireBullets (6, 4, 10, 9, "FrostPuff", FBF_NORANDOM)//frost damage - +75% of normal

        "####" A 1 BRIGHT
		"####" A 0 A_SetPitch(-6.0 + pitch)
		"####" B 1 BRIGHT
		"####" AA 0 A_FireCustomMissile("YellowFlareSpawn",0,0,0,0)
		"####" A 0 A_ZoomFactor(1.00)
		"####" C 1 A_SetPitch(+1.0 + pitch)
		"####" DE 1 A_SetPitch(+1.0 + pitch)
		"####" A 0 A_SetPitch(+3.0 + pitch)
		Goto Pump1
		
	Pump1:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
		"####" A 0
		"####" A 0 A_GiveInventory ("Pumping", 1)
		"####" A 0 A_GiveInventory ("GoSpecial", 1)
		"####" BCD 1
		"####" A 0 A_SetCrosshair(41)
		"####" EFG 1
		"####" A 0 A_FireCustomMissile("ShotCaseSpawn",40,0,-8,-26)
		"####" H 1 A_PlaySound("weapons/sgpump", 3)
		"####" IJ 1
		"####" A 0 A_JumpIfInventory("ShotgunAmmo",1,3)
		"####" A 0 A_JumpIfInventory("TurboReload", 1, 2)
		"####" A 0 A_Giveinventory("ShotgunWasEmpty",1)
		Goto ReloadNormally
		"####" KL 1
		"####" KJIH 1

		"####" A 0 A_Takeinventory("ShotgunWasEmpty",1)
		"####" GFEDC 1 A_JumpIfInventory("Kicking",1,"DoKick")
		"####" A 0 A_JumpIfInventory("TurboReload", 1, "TurboReload")
		Goto ReadyToFireAgain
   
	Pump2:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
		"####" A 0 A_GiveInventory ("Pumping", 1)
		"####" A 0 A_GiveInventory ("GoSpecial", 1)
		"####" A 0 A_TakeInventory("Reloading", 1)
		"####" A 0 A_Takeinventory("Zoomed",1)
		"####" A 0 A_ZoomFactor(1.0)
		"####" FG 1
		"####" H 1 A_PlaySound("weapons/sgpump", 3)
		"####" IJ 1
		"####" KL 1
		"####" KJIH 1
		"####" A 0 A_Takeinventory("ShotgunWasEmpty",1)
		"####" GFEDC 1 A_JumpIfInventory("Kicking",1,"DoKick")
		Goto ReadyToFireAgain
		
	ReadyToFireAgain:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
        "####" A 1 Offset(10,36)
        "####" A 1 Offset(9,40)
        "####" A 1 Offset(4,40)
        "####" A 1 Offset(0,32)
        "####" A 0 A_Refire
        "####" A 0 
		Goto ReadyLoop
		
	Fire2:
		SHT8 A 0 
		"####" A 0 A_Takeinventory("Reloading",1)
		"####" A 0 A_JumpIfInventory("ShotgunAmmo",1,2)
		Goto Reload
		"####" A 0 A_JumpIfInventory("ShotgunWasEmpty", 1, "Pump2")
		
		"####" A 0 A_JumpIfInventory("FrostEnchantedShotgun",1,2)
		"####" A 0 A_AlertMonsters
		"####" AA 0 A_FireCustomMissile("GunFireSmoke", 0, 0, 0, 2, 0, 0)
		"####" A 0 A_PlaySound("weapons/sg", 1)
		"####" A 0
		"####" A 0 A_SpawnItemEx("PlayerMuzzle1",30,0,45)
		"####" A 0 A_FireBullets (3, 3, 10, 12, "ShotgunPuff", FBF_NORANDOM)
		
		"####" A 0 A_JumpIfInventory("FireEnchantedShotgun",1,4)
		"####" A 0 A_JumpIfInventory("LightningEnchantedShotgun",1,5)
		"####" A 0 A_JumpIfInventory("FrostEnchantedShotgun",1,6)
		
		"####" A 0 A_Jump(256,6)
		"####" A 0 A_FireBullets (6, 4, 10, 6, "FirePuff", FBF_NORANDOM)//fire damage - +50% of normal
		"####" A 0 A_Jump(256,4)
		"####" A 0 A_FireBullets (6, 4, 10, 12, "TeslaPuff", FBF_NORANDOM)//lightning damage - +100% of normal
		"####" A 0 A_Jump(256,2)
		"####" A 0 A_FireBullets (6, 4, 10, 9, "FrostPuff", FBF_NORANDOM)//frost damage - +75% of normal
		
		"####" A 0 A_FireCustomMissile("DistantFireSoundShotgun", random(-1,1), 0, 0, -12, 0, random(-1,1))
		"####" AAAAA 0 A_FireCustomMissile("DecorativeTracer", random(-5,5), 0, 0, 0, 0, random(-5,5))
		"####" A 0 A_SetPitch(-10.0 + pitch)
		"####" A 0 A_Takeinventory("ShotgunAmmo",1)
		"####" A 0 A_SetAngle(random(4, -4) + angle)
		"####" F 1 BRIGHT A_SetPitch(+2.0 + pitch)
		"####" GHIA 1 A_SetPitch(+2.0 + pitch)
		"####" A 1	
		"####" A 0 A_GiveInventory ("Pumping", 1)
		"####" JKLM 1
		"####" A 0 A_FireCustomMissile("ShotCaseSpawn",40,0,14,0)
		"####" A 0 A_PlaySound("weapons/sgpump")
	   	   
		"####" NOONMLKJ 1
		"####" A 2
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 0 A_JumpIfInventory("FiredSecondary",1,"HoldAim")//If still pressing alt fire, it means its holding aim
		"####" A 0 A_Refire
		"####" A 1
		Goto Ready2
	
	AltFire:
		SHT8 A 0
		"####" A 0 A_Giveinventory("GoSpecial",1)
		"####" A 0 A_JumpIfInventory("Zoomed",1,"StopADS")
		"####" A 0 A_Giveinventory("Zoomed",1)
        "####" A 0 A_ZoomFactor(1.2)
		"####" A 0 A_SetCrosshair(41)
		"####" A 0 A_Giveinventory("ADSmode",1)
        "####" E 2
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 2 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 0 A_JumpIfInventory("FiredSecondary",1,"HoldAim")
        Goto Ready2
		
		HoldAim:
		SHT8 A 0
	    "####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredPrimary",1,"Fire")
		"####" A 1 A_WeaponReady(WRF_ALLOWRELOAD)
		"####" A 0 A_JumpIfInventory("FiredSecondary",1,"HoldAim")
		
	StopADS:
		"####" A 0 A_Takeinventory("Zoomed",1)
        "####" A 0 A_ZoomFactor(1.0)
		"####" A 0 A_Takeinventory("ADSmode",1)
		"####" A 0 A_Giveinventory("GoSpecial",1)
		"####" D 2
        Goto ReadyLoop
		
	WarmUp:
		"####" A 0
		"####" A 0 A_TakeInventory ("NeverSelectedShotgun", 1)
		"####" A 0 A_TakeInventory("Reloading", 1)
		"####" A 0 A_Takeinventory("Zoomed",1)
		"####" A 0 A_ZoomFactor(1.0)
		SPSS A 0 A_JumpIfInventory("IsPaladin",1,3)
		SHSS A 0 
		"####" EFGHIJKLM 1
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
		"####" FG 1
		"####" H 1 A_PlaySound("weapons/sgpump", 3)
		"####" IJ 1
		"####" KL 1
		"####" KJIH 1
		"####" A 0 A_Takeinventory("ShotgunWasEmpty",1)
		"####" GFEDC 1 A_JumpIfInventory("Kicking",1,"DoKick")
		Goto ReadyToFireAgain	
    	
    Reload:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
	    "####" A 0
		"####" A 0 A_TakeInventory("Reloading", 1)
	    "####" A 0 A_Takeinventory("Zoomed",1)
        "####" A 0 A_ZoomFactor(1.0)
		"####" A 0 A_TakeInventory("ShotgunWasEmpty", 1)
		"####" A 1 A_WeaponReady
		"####" A 0 A_JumpIfInventory("ShotgunAmmo", 9, "Ready")
		"####" A 0 A_JumpIfInventory("ShotgunAmmo", 1, "ReloadNormally")
		"####" A 0 A_GiveInventory("ShotgunWasEmpty", 1)
	ReloadNormally:	
        "####" A 0 A_JumpIfInventory("AmmoShell",1,1)
        Goto ReadyLoop
        "####" AA 0
		"####" A 0 A_JumpIfInventory("TurboReload", 1, "TurboReload")
		"####" B 1 
		"####" A 0 A_GiveInventory ("Pumping", 1)
		"####" CDE 1 A_Takeinventory("FiredSecondary",1)
	ReloadContinue:
		"####" A 0 A_JumpIfInventory("AmmoShell",1,1)
        Goto ReloadEnd
		"####" A 0 A_GiveInventory ("Pumping", 1)
		"####" A 0 A_JumpIfInventory("ShotgunWasEmpty",1,3)
        "####" A 0 A_JumpIfInventory("ShotgunAmmo",9,"ReloadEnd")
		"####" A 0 A_Jump(256,2)
		"####" A 0 A_JumpIfInventory("ShotgunAmmo",8,"ReloadEnd")// Fuck frame based jump states. -Dino
        "####" A 0 A_Giveinventory("ShotgunAmmo",1)
		"####" A 0 A_Takeinventory("AmmoShell",1)
		SPHR A 0 A_JumpIfInventory("IsPaladin",1,3)
		SSMR A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SSHR A 0
        "####" AAAABBC 1
		"####" A 0 A_jumpIfInventory("IsPaladin",1,"PallyInsertShell")
		"####" A 0 A_jumpIfInventory("IsSorcerer",1,"SorcyInsertShell")
        "####" D 1 A_PlaySound("insertshell")
        "####" EF 1 A_WeaponReady(WRF_NOBOB)
	InsertShellContinue:
        "####" A 0 A_JumpIfInventory("Reloading", 1, "Pump2")
        "####" A 0 A_JumpIfInventory("Kicking",1,"DoKickReloading")
        Goto ReloadContinue
		
	ReloadEnd:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
		"####" A 0 A_JumpIfInventory("ShotgunWasEmpty", 1, "Pump2")
		"####" FEDCBA 1 A_WeaponReady
		"####" A 0 A_Takeinventory("Reloading",1)
		"####" A 0 
		Goto ReadyLoop
	
	SorcyInsertShell:
		SSMR D 2 A_PlaySound("insertshell")
        SSMR EF 2 A_WeaponReady(WRF_NOBOB)
		Goto InsertShellContinue
	
	PallyInsertShell:
		SPHR D 2 A_PlaySound("insertshell")
        SPHR EF 2 A_WeaponReady(WRF_NOBOB)
		Goto InsertShellContinue
	
	 TurboReload:
		SPSS A 0 A_JumpIfInventory("IsPaladin",1,2)
		SMSS A 0 A_JumpIfInventory("IsSorcerer",1,1)
		Goto TurboBullets
		SPSS BC 1
	TurboBullets:	
		"####" A 0
		"####" A 0 A_JumpIfInventory("ShotgunAmmo",8,"FinishTurboReload")
        "####" A 0 A_JumpIfInventory("AmmoShell",1,1)
        Goto FinishTurboReload
        "####" A 0 A_Giveinventory("ShotgunAmmo",1)
		"####" A 0 A_Takeinventory("AmmoShell",1)
		Goto TurboBullets
	FinishTurboReload:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
		"####" A 1 A_Refire
		Goto ReadyLoop		
	
		
	Unload:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
		"####" A 1
		"####" A 0 A_ZoomFactor(1.0)
		"####" A 0 A_Takeinventory("Unloading",1)
		"####" A 0 A_Takeinventory("ADSmode",1)
		"####" A 0 A_Takeinventory("Zoomed",1)
		"####" A 0 A_GiveInventory("ShotgunWasEmpty", 1)
        "####" A 0 A_JumpIfInventory("ShotgunAmmo",1,1)
        Goto OkToFire
		"####" A 0 A_Takeinventory("Zoomed",1)
		"####" A 0 A_GiveInventory ("Pumping", 1)
		"####" A 0 A_Takeinventory("Unloading",1)
		"####" ABCDEF 1
		
	RemoveBullets:
		"####" A 0 A_JumpIfInventory("ShotgunAmmo",1,1)
		Goto FinishUnload
		"####" A 0 A_Takeinventory("ShotgunAmmo",1)
		"####" A 0 A_Giveinventory("AmmoShell",1)
		"####" A 0 A_JumpIfInventory("IsPaladin",1,"PallyRemoveBullets")
		"####" A 0 A_JumpIfInventory("IsSorcerer",1,"SorcyRemoveBullets")
		SHTN G 1
		SHTN H 1 A_PlaySound("weapons/sgpump", 3)
		SHTN IJ 1
		SHTN KL 1
		SHTN KJIH 1
		"####" A 0 A_Giveinventory("ShotgunWasEmpty",1)
		SHTN GF 1
		Goto RemoveBullets
	
	SorcyRemoveBullets:
		SMTN G 2
		SMTN H 2 A_PlaySound("weapons/sgpump", 3)
		SMTN IJ 2
		SMTN KL 2
		SMTN KJIH 2
		"####" A 0 A_Giveinventory("ShotgunWasEmpty",1)
		SMTN GF 2
		Goto RemoveBullets
	
	PallyRemoveBullets:
		SPTN G 2
		SPTN H 2 A_PlaySound("weapons/sgpump", 3)
		SPTN IJ 2
		SPTN KL 2
		SPTN KJIH 2
		"####" A 0 A_Giveinventory("ShotgunWasEmpty",1)
		SPTN GF 2
		Goto RemoveBullets
	
	FInishUnload:
		SPTN A 0 A_JumpIfInventory("IsPaladin",1,3)
		SMTN A 0 A_JumpIfInventory("IsSorcerer",1,2)
		SHTN A 0
		"####" EDCBA 1
		"####" A 0 A_Takeinventory("Unloading",1)
		Goto OkToFire	
		
	DoKickReloading:
		NULL A 0 A_JumpIf (momZ > 0, "AirKick")
		NULL A 0 A_JumpIf (momZ < 0, "AirKick")
		K1CK A 0 A_JumpIfInventory("IsPaladin",1,3)
		K2CK A 0 A_JumpIfInventory("IsSorcerer",1,2)
		KICK A 0
        "####" A 0 A_PlaySound("KICK")
		"####" A 0 SetPlayerProperty(0,1,0)
		"####" BCD 1
		"####" A 0 A_FireCustomMissile("KickAttack", 0, 0, 0, -7)
        "####" H 3
		"####" A 0 A_Takeinventory("Kicking",1)
		"####" I 1
		"####" GFEDCBA 1 
		TNT1 A 0 A_Takeinventory("Kicking",1)
		TNT1 A 0 SetPlayerProperty(0,0,0)
		Goto ReloadNormally
		
	GoingToReady:
		"####" A 1
		Goto ReadyLoop
		
	SpellFlash:
		SMTN ABCDEEFFFFFFFFFFFFFFEEDDCBAA 1
		stop
		
		DualWield:
			RPFG A 0 A_JumpIfInventory("IsPaladin",1,3)
			RIFG A 0
			"####" A 0
			"####" A 0 A_Takeinventory("StartDualWield",1)
			"####" A 0 A_JumpIfInventory("IsSorcerer",1,"Enchanting")
			"####" A 0 A_Print("You can't dual wield shotguns unless you are 4-handed...")
			Goto Ready
		
			Enchanting:
			TNT1 A 0 A_JumpIfInventory("QuickFireSpellSelected",1,"FireEnchant")
			TNT1 A 0 A_JumpIfInventory("QuickLightningSpellSelected",1,"LightningEnchant")
			TNT1 A 0 A_JumpIfInventory("QuickFrostSpellSelected",1,"FrostEnchant")

		FireEnchant:
			"####" F 0 A_Print("Now your shotgun become wand of fire")
			SMTN ABCDEEFFFFEEDDCBAA 1
			TNT1 A 0 A_GiveInventory("FireEnchantedShotgun",1)
			TNT1 A 0 A_TakeInventory("FrostEnchantedShotgun",1)
			TNT1 A 0 A_TakeInventory("LightningEnchantedShotgun",1)
			goto ready 
			
		LightningEnchant:
			"####" F 0 A_Print("Now your shotgun become rod of storm")
			SMTN ABCDEEFFFFEEDDCBAA 1
			TNT1 A 0 A_GiveInventory("LightningEnchantedShotgun",1)
			TNT1 A 0 A_TakeInventory("FrostEnchantedShotgun",1)
			TNT1 A 0 A_TakeInventory("FireEnchantedShotgun",1)
			goto ready

		FrostEnchant:
			"####" F 0 A_Print("Now your shotgun become staff of frost")
			TNT1 A 0 A_GiveInventory("FrostEnchantedShotgun",1)
			TNT1 A 0 A_TakeInventory("LightningEnchantedShotgun",1)
			TNT1 A 0 A_TakeInventory("FireEnchantedShotgun",1)
			SMTN ABCDEEFFFFEEDDCBAA 1
			Goto Ready
			
	}
}


ACTOR FireEnchantedShotgun : Inventory
{	
	Inventory.MaxAmount 1
}

ACTOR LightningEnchantedShotgun : Inventory
{	
	Inventory.MaxAmount 1
}

ACTOR FrostEnchantedShotgun : Inventory
{	
	Inventory.MaxAmount 1
}

ACTOR ShotgunAmmo : Ammo
{
   Inventory.Amount 0
   Inventory.MaxAmount 9
   Ammo.BackpackAmount 0
   Ammo.BackpackMaxAmount 9
   Inventory.Icon "SHTCA0"
}